package cn.stylefeng.guns.modular.order.mapper;

import cn.stylefeng.guns.modular.order.entity.OrderOutpreparePlatooncar;
import cn.stylefeng.guns.modular.order.model.params.OrderOutpreparePlatooncarParam;
import cn.stylefeng.guns.modular.order.model.result.OrderOutpreparePlatooncarResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 出库订单预排车表 Mapper 接口
 * </p>
 *
 * @author zhucx
 * @since 2023-11-08
 */
public interface OrderOutpreparePlatooncarMapper extends BaseMapper<OrderOutpreparePlatooncar> {

    /**
     * 获取列表
     *
     * @author zhucx
     * @Date 2023-11-08
     */
    List<OrderOutpreparePlatooncarResult> customList(@Param("paramCondition") OrderOutpreparePlatooncarParam paramCondition);

    String getCarnumber(@Param("clientId") String clientId ,@Param("dataDt") String dataDt);

    /**
     * 获取map列表
     *
     * @author zhucx
     * @Date 2023-11-08
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") OrderOutpreparePlatooncarParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author zhucx
     * @Date 2023-11-08
     */
    Page<OrderOutpreparePlatooncarResult> customPageList(@Param("page") Page page, @Param("paramCondition") OrderOutpreparePlatooncarParam paramCondition, @Param("condition") String condition, @Param("operateId") Long operateId);

    /**
     * 获取分页map列表
     *
     * @author zhucx
     * @Date 2023-11-08
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") OrderOutpreparePlatooncarParam paramCondition);

    List<OrderOutpreparePlatooncarResult> findListBySpec(@Param("paramCondition") OrderOutpreparePlatooncarParam param, @Param("operateId") Long operateId);

    int updateByDianHua(@Param("stat") String stat, @Param("sijidianhua") String sijidianhua);

}
